package com.corpgovernment.organization.Bo;

import lombok.Data;

import java.util.List;

@Data
public class SyncEmployeeInfoMQBo {

    /**
     * 基础信息
     */
    private BasicInfo basicInfo;

    /**
     * 证件信息
     */
    private List<CardType> cardTypeList;

    /**
     * 操作类型
     * add
     * update
     * delete
     * transfer
     */
    private String actionType;


    @Data
    public static class BasicInfo{
        /**uid**/
        private String uid;
        /**姓名**/
        private String name;
        /**员工类型**/
        private Integer employeeType;
        /**手机码**/
        private String countryCode;
        /**手机号码**/
        private String mobilePhone;
        /**生日，格式：yyyy-MM-dd**/
        private String birthday;
        /**性别：M:男  F:女**/
        private String gender;
        /**邮箱**/
        private String email;
        /**国籍二字码，默认：CN**/
        private String nationality;
        /**归属组织**/
        private String orgId;
        /**职级**/
        private String postName;
        /**状态，1：正常 2：禁用 3：离职 4：删除**/
        private String status;
        /**变更部门前组织ID，oldOrgId填写变更前部门，orgId填写目的地部门**/
        private String oldOrgId;
        /** 直接上级uid */
        private String manageUid;
        /** 是否同步登录手机号 */
        private Boolean isSyncLoginPhone = true;
        /** 职级id **/
        private Long postId;
        private Long jobId;
    }

    @Data
    public static class CardType{
        /**证件类型**/
        private String cardType;
        /**证件号**/
        private String cardNo;
        /**有效期**/
        private String timeLimit;
    }

}
